import request from '@/utils/request'

// 查询质检报告单默认值列表
export function listQualityform(query) {
  return request({
    url: '/smart/qualityform/list',
    method: 'get',
    params: query
  })
}

// 查询质检报告单默认值详细
export function getQualityform(id) {
  return request({
    url: '/smart/qualityform/' + id,
    method: 'get'
  })
}

// 新增质检报告单默认值
export function addQualityform(data) {
  return request({
    url: '/smart/qualityform',
    method: 'post',
    data: data
  })
}

// 修改质检报告单默认值
export function updateQualityform(data) {
  return request({
    url: '/smart/qualityform',
    method: 'put',
    data: data
  })
}

// 删除质检报告单默认值
export function delQualityform(id) {
  return request({
    url: '/smart/qualityform/' + id,
    method: 'delete'
  })
}
